import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import WindiCSS from 'vite-plugin-windicss'

// https://vite.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    WindiCSS()
  ],
  devServer: {
    proxy: {
      '/api': {
        target: 'https://admin.sgkspx.cn',
        changeOrigin: true,
        pathRewrite: { '^': '' },
      },
    },
  },
})


